package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024-09-17
 * Time: 14:20
 */
class MyThread extends Thread{
    @Override
    public void run() {
        System.out.println("这就是进入该线程的入口");
    }
}
public class ThreadDemo1 {
    public static void main(String[] args) {
        //根据类，创建实例，线程实例才是真正的线程
        //一般用向上转型的写法
        Thread t = new MyThread();
        t.start();

    }
}
